#ifndef HOME_H
#define HOME_H

#include <QWidget>
#include <weather.h>
#include <QPixmap>
#include <QObject>

#include <QLabel>


#include "my_udp.h"

namespace Ui {
class HOME;
}

class HOME : public QWidget
{
    Q_OBJECT
public:
    QLabel *my_win_1;

    my_udp *udp_server;

    QUdpSocket *udpSocket;
public:
    explicit HOME(QWidget *parent = nullptr);
    ~HOME();

private slots:

    void on_pushButton_clicked();



private:
    Ui::HOME *ui;


protected:
    void resizeEvent(QResizeEvent *event) override; // 重写 resizeEvent

private slots:
    void readPendingDatagrams();





};

#endif // HOME_H
